/**
*@Author      ：anlzou
*@Date        ：22:21 2021/4/24
*@Github      ：https://github.com/anlzou
*@Description ：
*/
package com.anlzou.utils;

import com.anlzou.myInvocationHandler.MyInvocationHandler;

import java.lang.reflect.Proxy;

public class ProxyUtils {
    private Object obj;

    public ProxyUtils(Object obj){
        this.obj=obj;
    }

    public Object getProxy(){
        return Proxy.newProxyInstance(obj.getClass().getClassLoader(), obj.getClass().getInterfaces(), new MyInvocationHandler(obj));
    }
}
